<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <script>
        var obj1 = {
            name:'ccc'
        }
        var array1 = [1,3.34,'kms',obj1]
        array1.push(888)
        console.log(array1)
        
        array1.splice(1,1,1,2,3,4,5)//[1,1,2,3,4,5,'kms',obj1,888]
        console.log(array1)

        array2 = [2,3,4,5,6]
        var a = array2.splice(0,2)//[4 5 6]
        console.log(array2)
        console.log(a)
        array2.splice(1,0,'ccc')//[ 4  'ccc' 5 6]
        console.log(array2)

        function double(para1){
            return para1*para1
        }
        array3 = array2.map(double)
        console.log(array3)
    </script>
</head>
<body>
    
</body>
</html>